package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pojo.Process;

import java.util.List;

public interface ProcessMapper {
    //多条件查询工序
    List<Process> queryProcesses(Process process);

    //新增工序
    int saveProcess(Process process);

    //根据id查找
    Process queryById(Long id);

    //查询单个工序对象
    Process queryProcess(String code);

    //根据id编辑工序
    int updateProcess(Process process);

    //删除单个工序
    int deleteProcess(Long id);

    //批量删除工序
    int batchDelete(Long[] ids);

    //根据工艺id查询工序
    List<Process> queryBuWorkflowId(Long id);
}
